<?php

class DarknessMessage implements Jsonable{
    function exportJsonObject(){
        $json = new stdClass();
        
        $json->id = $this->messageID;
        $json->sender = getEntityInfo($this->sender, $this->senderType)->exportJsonObject();
        $json->receiver = getEntityInfo($this->receiver, $this->receiverType)->exportJsonObject();
        $json->date = $this->date;
        $json->subject = $this->subject;
        $json->communication = $this->communication;
        
        return $json;
    }
}